#!/bin/bash 

source $(dirname $0)/utils.sh
DEPLOY_ID=$1

debug "CANCEL: shutting down vm ..."

vbox_shutdown "$DEPLOY_ID" acpi $ACPI_RECHECK $ACPI_SLEEP_INTERVAL

sleep 1

debug "CANCEL: CALLING DESTROY_VM ..."
vbox_destroy_vm "$DEPLOY_ID"
STATUS=$?

debug "STATUS CODE FROM DESTROY_VM: ${STATUS}" 
exit $STATUS
